//
//  GYSearchGoos.m
//  GoodLuck
//
//  Created by apple on 2018/3/7.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYSearchGoos.h"

@implementation GYSearchGoos

+ (NSMutableArray *)loadGoodsData:(NSArray *)source {
    NSMutableArray *arrays = [NSMutableArray array];
    for (NSDictionary *dic in source) {
        GYSearchGoos *model = [[GYSearchGoos alloc] initWithDic:dic];
        [arrays addObject:model];
    }
    
    return arrays;
}

- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    //NSLog(@"key =====%@",key);
}

@end
